// 文件位置：src/components/WorkflowControls.js

import React, { useState, useCallback } from 'react';
import Button from '@mui/material/Button';
import Input from '@mui/material/Input';

export const WorkflowControls = ({ handleSelectModule, handleWorkflowAction, handleWorkflowLabel, fetchWorkflows, testError }) => (
  <>
    <Button variant="contained" color="primary" onClick={handleSelectModule}>
      添加步骤
    </Button>
    <Button variant="contained" color="primary" onClick={handleWorkflowAction}>
      {handleWorkflowLabel} {/* 使用动态标签 */}
    </Button>
    <Button variant="contained" color="primary" onClick={fetchWorkflows}>
      获取工作流列表
    </Button>
    <Button variant="contained" color="primary" onClick={testError}>
      错误测试
    </Button>
  </>
);
